﻿<%@ Page Language="C#"  AutoEventWireup="true" CodeFile="AddUser.aspx.cs" Inherits="UserManagement_AddUser" Title="Untitled Page" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head  runat="server">
    <title>添加用户</title>
    <link href="../Css/ys.css" rel="stylesheet" type="text/css" />
     <script language="javascript" type="text/javascript" src="../Js/LoginNameCheck.js"></script>
</head>
<body>
    <form id="form1" runat="server">
  <div class="zt mainCenter">
        <div class="contentBody">
            <div class="title">
               学员管理-->添加学员</div>
             <table style="width:100%;color:#336699;"  class="ta1">
	<tr>
	<td class="ta2 tag">
		学校：</td>
	<td class="ta2">
        <asp:DropDownList ID="dlschool" runat="server"  DataTextField="VS_name" 
               DataValueField="ID" CssClass="inp2">
        </asp:DropDownList>
	</td></tr>
	<tr>
	<td class="ta2 tag"  >
		登陆名
	：</td>
	<td class="ta2">
		<asp:TextBox id="txtVU_loginname" runat="server"   CssClass="inp1"></asp:TextBox>
		<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" Text="*"  ControlToValidate="txtVU_loginname"
                 ErrorMessage="登陆名不能为空" ValidationGroup="register"></asp:RequiredFieldValidator>
        <asp:Label ID="lblName" runat="server" Text=""></asp:Label>
        <label id ="lblname" style ="color:Red; font-size:small"></label>
	</td></tr>
	<tr>
	<td class="ta2 tag"  >
		密码
	：</td>
	<td class="ta2">
		<asp:TextBox id="txtVU_Password" runat="server"  TextMode="Password"  CssClass="inp1"></asp:TextBox>
		<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Text="*"  ControlToValidate="txtVU_Password"
                 ErrorMessage="密码不能为空" ValidationGroup="register"></asp:RequiredFieldValidator>
	</td></tr>
	 <tr>
            <td class="ta2 tag">
                再次输入密码：</td>
            <td class="ta2">
                <asp:TextBox ID="txtagain" runat="server"  TextMode="Password"
                    ValidationGroup="register" CssClass="inp1"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" Text="*"  ControlToValidate="txtagain"
                 ErrorMessage="重输密码不能为空" ValidationGroup="register"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="comValidator" runat="server" ControlToCompare="txtVU_Password" ControlToValidate="txtagain"
                 ErrorMessage="两次密码不一致" Text ="*" ValidationGroup="register"></asp:CompareValidator>
                </td>
        </tr>
	<tr>
	<td class="ta2 tag"  >
		真实名
	：</td>
	<td class="ta2">
		<asp:TextBox id="txtVU_realname" runat="server"  CssClass="inp1"></asp:TextBox>
		<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" Text="*"  ControlToValidate="txtVU_realname"
                 ErrorMessage="真实名不能为空" ValidationGroup="register"></asp:RequiredFieldValidator>
	</td></tr>
	<tr>
	<td class="ta2 tag"  >
		联系方式
	：</td>
	<td class="ta2">
		<asp:TextBox id="txtVU_mobile" runat="server"  CssClass="inp1"></asp:TextBox>
		 <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" Text="*"  ControlToValidate="txtVU_mobile" 
                ErrorMessage="联系方式不能为空" ValidationGroup="register"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID ="adfas" runat ="server" 
            ErrorMessage ="联系格式不正确" ControlToValidate ="txtVU_mobile" Text ="*" ValidationExpression ="^((\(\d{3,4}\)|\d{3,4}-)?\d{8})$|^(\d{11})$"
            ValidationGroup="register"></asp:RegularExpressionValidator>
	</td></tr>
	<tr>
	<td class="ta2 tag"  >
		邮箱
	：</td>
	<td class="ta2">
		<asp:TextBox id="txtVU_email" runat="server"  CssClass="inp1"></asp:TextBox>
		  <asp:RegularExpressionValidator ID="RegularExpressionValidator1" 
                 ControlToValidate="txtVU_email" runat="server" ErrorMessage="邮箱地址格式不正确" 
                 ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ValidationGroup="register" Width="7px">*</asp:RegularExpressionValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Text="*"  ControlToValidate="txtVU_email" 
                ErrorMessage="邮箱地址不能为空" ValidationGroup="register"></asp:RequiredFieldValidator>
	</td></tr>
	<tr>
	 <tr>
                    <td class="ta2 tag"  >
                         启用：
                    </td>
                    <td  class="ta2" >
                        <asp:CheckBox ID="chkIsEnable" runat="server" Checked="true" />
                    </td>
                </tr>
	<td class="ta2 tag" style="display:none">
        购买复习帐号：
	</td>
	<td class="ta2"  style="display:none">
        <asp:RadioButtonList ID="radIsBuyAccount" runat="server" 
            RepeatDirection="Horizontal">
        <asp:ListItem Value="1" Selected="True">是</asp:ListItem>
        <asp:ListItem Value="0">否</asp:ListItem>
        </asp:RadioButtonList>
        </td>
	</tr>
	</table>
		<asp:Button ID="btnAdd" runat="server" Text="添加"  CssClass="button" OnClick="btnAdd_Click"  ValidationGroup="register"  ></asp:Button>&nbsp;&nbsp; <input type="reset" id="btnRest"  class="button"/>
     <asp:HiddenField ID="hidId" runat="server" />
		 <p ><span id="AuthSpan" style="color:Red;font-size:small" ></span></p>
 <p style="color:Red; text-align:left"><asp:Label ID="lblMess" runat="server"></asp:Label></p>
   <p style="margin-left:50px">&nbsp;<asp:ValidationSummary ID="validSummary" runat="server"  HeaderText="错误信息" ValidationGroup="register" /> 
    </div>
    </div>
    </form>
</body>
</html>



